package com.woniuxy.user.service.Impl;

import com.woniuxy.user.dto.OrderTwo;
import com.woniuxy.user.mapper.OrderMapper;
import com.woniuxy.user.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<OrderTwo> getUncompletedOrders(Integer uid, String status) {
        return orderMapper.getUncompletedOrders(uid,status);
    }

    @Override
    public List<OrderTwo> getAllOrderByUserId(Integer uid) {
        return orderMapper.getAllOrderByUserId(uid);
    }
}
